#!/bin/bash
. /etc/default/nfs-kernel-server
NFSDTHR=${RPCNFSDCOUNT:-40}
NFSDRUN=`ps ax | grep -c "\[nfsd\]"`
if [ $NFSDTHR -eq $NFSDRUN ]; then
echo "OK -- Nro de Instancias de NFSD Corriendo $NFSDRUN de $NFSDTHR"
exit 0
else
echo "CRITICAL -- Nro de Instancias de NFSD Corriendo $NFSDRUN de $NFSDTHR"
exit 2
fi
